package com.dayuanit.dy17.mix.proxy.service.impl;

import com.dayuanit.dy17.mix.proxy.annotaion.Transactional;
import com.dayuanit.dy17.mix.proxy.service.IPayService;

public class PayServiceImpl implements IPayService {

    @Override
    public void pay() {
        System.out.println(">>>>>> PayServiceImpl pay()");
        recharge(500);
    }

    @Override
    @Transactional
    public void recharge(int amount) {
        System.out.println(">>>>> PayServiceImpl recharge amount=" + amount);
    }

    @Override
    public int queryBalance() {
        System.out.println(">>>>>> PayServiceImpl queryBalance 500");
        return 500;
    }

    //不能做代理
    private void a() {

    }
}
